<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>登录页面</title>
</head>
<body>
    <form action="${pageContext.request.contextPath}/user/login" method="post">
        用户名： <input type="text" name="username"> <br/>
        密码： <input type="text" name="password"> <br/>
        请输入验证码：<input type="text" name="code"><img src="${pageContext.request.contextPath}/user/getImage" alt="">
        <input type="text" value="${pageContext.session.getAttribute("error")}" style="border: none" readonly="readonly"> <br/>
        <button type="submit">登录</button>
    </form>
</body>
</html>
